﻿using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace YArchitech.Revit.MEP.Opening
{
	public partial class DlgCondition : System.Windows.Forms.Form
	{
		public DlgCondition(DataGridView dgv)
		{
			this.InitializeComponent();
			this.mDgv = dgv;
		}

		private void button1_Click(object sender, EventArgs e)
		{
			foreach (object obj in ((IEnumerable)this.mDgv.Rows))
			{
				DataGridViewRow dataGridViewRow = (DataGridViewRow)obj;
				if (dataGridViewRow.Cells["HostTypeString"].Value.ToString() == "结构墙")
				{
					dataGridViewRow.Selected = true;
				}
				else
				{
					dataGridViewRow.Selected = false;
				}
			}
		}

		private void DlgCondition_Load(object sender, EventArgs e)
		{
		}

		private DataGridView mDgv;
	}
}
